* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

/* Theme Styles */
body.light-theme {
  background-color: var(--bg-primary-light);
  color: var(--text-primary-light);
}

body.dark-theme {
  background-color: var(--bg-primary-dark);
  color: var(--text-primary-dark);
  --gradient: var(--gradient-dark);
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--bg-primary-light);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  white-space: nowrap;
  min-height: 60px;
  transition: transform 0.3s ease-in-out;
}

.dark-theme nav {
  background-color: var(--bg-primary-dark);
  border-bottom-color: var(--border-color);
}

nav.nav-up {
  transform: translateY(-100%);
}

nav.nav-down {
  transform: translateY(0);
}

nav .left-section,
nav .right-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

nav .middle-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 1rem;
  overflow: hidden;
  flex-shrink: 1;
  min-width: 0;
}

nav .middle-section a {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar .container-fluid {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 2rem;
}

.navbar .logo {
  flex-shrink: 0;
}

.navbar .main-links {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-start; /* Changed from center to flex-start for left alignment */
  gap: 2rem;
}

.navbar .main-links .nav-link {
  flex-shrink: 1;
  min-width: 0;
  text-align: center;
}

.navbar .container-fluid > div:has(#theme-toggle) {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

#theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggler {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.25rem;
  margin-left: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none !important;
  background: none !important;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
}

.nav-toggler:focus {
  outline: none !important;
  box-shadow: none !important;
}

.nav-toggler span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary-light);
  transition: all 0.3s ease-in-out;
}

.dark-theme .nav-toggler span {
  background-color: var(--text-primary-dark);
}

.nav-toggler:hover span {
  background-color: var(--accent-light);
}

.dark-theme .nav-toggler:hover span {
  background-color: var(--accent-dark);
}

.light-theme .nav-toggler-icon,
.dark-theme .nav-toggler-icon {
  display: none;
}

.navbar-toggler-icon {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  transition: opacity 0.3s ease;
}

.logo-dark {
  display: none;
}

.dark-theme .logo-dark {
  display: block;
}

.dark-theme .logo-light {
  display: none;
}

.nav-link {
  color: var(--text-primary-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

.dark-theme .nav-link {
  color: var(--text-primary-dark);
}

.nav-link:hover {
  color: var(--accent-light);
}

.dark-theme .nav-link:hover {
  color: var(--accent-dark);
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-right: 3rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: var(--text-secondary-light);
}

.dark-theme .social-icon {
  color: var(--text-secondary-dark);
}

.social-icon:hover {
  color: var(--accent-light);
  transform: translateY(-2px);
}

.dark-theme .social-icon:hover {
  color: var(--accent-dark);
}

#theme-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  margin-right: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary-light);
  transition: color 0.3s ease, transform 0.2s ease;
}

#theme-toggle:hover {
  color: var(--accent-light);
  transform: translateY(-1px);
}

.dark-theme #theme-toggle {
  color: var(--text-primary-dark);
}

.dark-theme #theme-toggle:hover {
  color: var(--accent-dark);
}

#theme-toggle .sun,
#theme-toggle .moon {
  width: 24px;
  height: 24px;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#theme-toggle .sun {
  opacity: 0;
  transform: scale(0.5);
}

#theme-toggle .moon {
  opacity: 1;
  transform: scale(1);
}

.dark-theme #theme-toggle .sun {
  opacity: 1;
  transform: scale(1);
}

.dark-theme #theme-toggle .moon {
  opacity: 0;
  transform: scale(0.5);
}

/* Mobile controls container */
.mobile-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme toggle button */
#theme-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  margin-right: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary-light);
  transition: color 0.3s ease, transform 0.2s ease;
}

#theme-toggle:hover {
  color: var(--accent-light);
  transform: translateY(-1px);
}

.dark-theme #theme-toggle {
  color: var(--text-primary-dark);
}

.dark-theme #theme-toggle:hover {
  color: var(--accent-dark);
}

#theme-toggle .sun,
#theme-toggle .moon {
  width: 24px;
  height: 24px;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#theme-toggle .sun {
  opacity: 0;
  transform: scale(0.5);
}

#theme-toggle .moon {
  opacity: 1;
  transform: scale(1);
}

.dark-theme #theme-toggle .sun {
  opacity: 1;
  transform: scale(1);
}

.dark-theme #theme-toggle .moon {
  opacity: 0;
  transform: scale(0.5);
}

@media (max-width: 991px) {
  #theme-toggle {
    margin-right: 0.5rem;
  }
}

@media (max-width: 991px) {
  nav {
    padding: 0.5rem 1rem;
  }

  .main-links {
    flex-direction: row !important;
    margin-right: 1rem !important;
  }

  .navbar-collapse {
    background: var(--bg-primary-light);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: height 0.3s ease;
  }

  .dark-theme .navbar-collapse {
    background: var(--bg-primary-dark);
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .navbar-collapse.collapsing {
    height: 0;
    overflow: hidden;
  }

  .navbar-collapse.show {
    height: auto;
  }

  .social-links {
    border-left: none;
    border-top: 1px solid var(--text-secondary-light);
    padding: 1rem 0 0;
    margin: 1rem 0 0;
    justify-content: center;
    margin-right: 0;
  }

  .dark-theme .social-links {
    border-top-color: var(--text-secondary-dark);
  }
}

/* Main content blur when menu is open */
main {
  transition: filter 0.3s ease;
  padding-top: 5rem;
}

main.menu-open {
  filter: blur(5px);
  pointer-events: none;
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 3rem 0;
}

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0;
}

#hero .container {
  position: relative;
  z-index: 1;
  padding: 2rem;
  margin-top: -5vh; /* Offset for the navbar height */
}

#hero h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

#hero .hero-text {
  font-size: 1.5em;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.2s;
}

#hero .cta-buttons {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spinning {
  animation: spin 2s linear infinite;
}

.hero-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.background-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vh;
  height: 80vh;
  opacity: 0.1;
  transition: opacity 0.3s ease;
}

.light-theme .light-symbol {
  opacity: 0.1;
}

.light-theme .dark-symbol {
  opacity: 0;
}

.dark-theme .dark-symbol {
  opacity: 0.1;
}

.dark-theme .light-symbol {
  opacity: 0;
}

#hero .container {
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-text {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-secondary-light);
}

.dark-theme .hero-text {
  color: var(--text-secondary-dark);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 4rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: normal;
  gap: 0.25rem;
}

.button.primary {
  background-color: var(--accent-light);
  color: white;
}

.button.secondary {
  background-color: transparent;
  border: 2px solid var(--accent-light);
  color: var(--accent-light);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background-color: var(--card-bg-light);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary-light);
}

.feature-card p {
  text-align: justify;
  hyphens: auto;
  color: var(--text-secondary-light);
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.feature-card p:last-child {
  margin-bottom: 0;
}

.feature-card ul {
  text-align: justify;
  hyphens: auto;
  padding-left: 1.2rem;
  margin: 0 0 1rem 0;
  list-style-type: disc;
}

.feature-card li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary-light);
  line-height: 1.6;
}

.feature-card li:last-child {
  margin-bottom: 0;
}

.dark-theme .feature-card {
  background-color: var(--card-bg-dark);
  box-shadow: var(--card-shadow-dark);
}

.dark-theme .feature-card h3 {
  color: var(--text-primary-dark);
}

.dark-theme .feature-card p {
  color: var(--text-secondary-dark);
}

.dark-theme .feature-card li {
  color: var(--text-secondary-dark);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dark-theme .feature-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Community Section */
.notification-box {
  background-color: var(--bg-secondary-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  border-left: 4px solid var(--accent-light);
}

.dark-theme .notification-box {
  background-color: var(--bg-secondary-dark);
  border-left-color: var(--accent-dark);
}

.notification-box p {
  margin: 0;
  color: var(--text-secondary-light);
  font-size: 1.1rem;
}

.dark-theme .notification-box p {
  color: var(--text-secondary-dark);
}

/* Token Section */
.token-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Sections */
.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.section > section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero section needs more padding */
#hero {
  padding: 4rem 0;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  width: 100%;
  padding: 4rem 1rem;
  background: linear-gradient(
    180deg,
    var(--bg-primary-light) 0%,
    var(--bg-secondary-light) 100%
  );
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.dark-theme .section-header {
  background: linear-gradient(
    180deg,
    var(--bg-primary-dark) 0%,
    var(--bg-secondary-dark) 100%
  );
}

.section-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-light) 50%,
    transparent 100%
  );
  opacity: 0.3;
}

.dark-theme .section-header::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-dark) 50%,
    transparent 100%
  );
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.dark-theme .section-subtitle {
  color: var(--text-secondary-dark);
}

/* Add subtle animation on scroll */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  view-timeline-name: --section;
  view-timeline-axis: block;
  animation: fade-in 1.2s ease-out both;
  animation-timeline: view();
  animation-range: entry 15% cover 40%;
}

/* Fallback for browsers that don't support scroll-driven animations */
@supports not (animation-timeline: view()) {
  .section-header {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .section-header {
    padding: 3rem 1rem;
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: 2.5rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }
}

/* Update spacing after headers */
.notification-box {
  margin-top: 2rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

.light-theme footer {
  background-color: var(--bg-secondary-light);
}

.dark-theme footer {
  background-color: var(--bg-secondary-dark);
}

/* Read More Link */
.read-more {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: block;
  text-align: right;
  margin-top: 1rem;
}

.dark-theme .read-more {
  color: var(--accent-dark);
}

.read-more:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero-text {
    font-size: 1.2rem;
  }

  .nav-content {
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .social-links {
    gap: 0.5rem;
    padding-left: 0.5rem;
    margin-left: 0.5rem;
  }

  .social-icon {
    padding: 0.3rem;
  }

  .token-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-primary-light);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .dark-theme .navbar-collapse {
    background-color: var(--bg-primary-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }
}

/* Base styles */
a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.dark-theme a {
  color: var(--accent-dark);
}

a:hover {
  color: var(--text-primary-light);
}

.dark-theme a:hover {
  color: var(--text-primary-dark);
}

/* Keep navigation links with their original color */
.nav-link {
  color: var(--text-primary-light);
}

.dark-theme .nav-link {
  color: var(--text-primary-dark);
}

.nav-link:hover {
  color: var(--accent-light);
}

.dark-theme .nav-link:hover {
  color: var(--accent-dark);
}

/* Keep social icons with their original color */
.social-icon {
  color: var(--text-secondary-light);
}

.dark-theme .social-icon {
  color: var(--text-secondary-dark);
}

.social-icon:hover {
  color: var(--accent-light);
}

.dark-theme .social-icon:hover {
  color: var(--accent-dark);
}

/* Video Carousel */
.video-carousel {
  margin-top: 4rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.video-card {
  position: relative;
  width: 256px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
  opacity: 0.7;
  aspect-ratio: 16/9;
}

/* Only apply hover effects on non-touch devices */
@media (hover: hover) and (pointer: fine) {
  .video-card:hover {
    transform: translateY(-5px);
    opacity: 1;
  }

  .video-card:hover .video-thumbnail {
    filter: grayscale(0%) contrast(100%) brightness(100%);
  }
}

/* Adjust sizes for smaller screens */
@media (max-width: 480px) {
  .video-carousel {
    gap: 1.5rem;
  }

  .video-card {
    width: 224px;
  }
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
  filter: grayscale(100%) contrast(80%) brightness(90%);
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 38px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.video-card:hover .video-play-button {
  background-color: #ff0000;
}

.video-play-button svg {
  width: 19px;
  height: 19px;
  fill: white;
}

.social-links-project {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0 -2rem;
}

.social-links-project .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: var(--text-secondary-light);
}

.dark-theme .social-links-project .social-icon {
  color: var(--text-secondary-dark);
}

.social-links-project .social-icon:hover {
  color: var(--accent-light);
  transform: translateY(-2px);
}

.dark-theme .social-links-project .social-icon:hover {
  color: var(--accent-dark);
}

#wallet-connect {
  font-size: 0.8rem;
  padding: 8px 12px 8px 6px;
  border: 1px solid var(--accent-light);
  background: transparent;
  color: var(--text-primary-light);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#wallet-connect .button-content {
  display: flex;
  align-items: center;
  gap: 2px;
}

#wallet-connect .wallet-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

#wallet-connect a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

#wallet-connect img {
  height: 30px;
  transition: opacity 0.3s ease;
}

.dark-theme #wallet-connect {
  border-color: var(--accent-dark);
  color: var(--text-primary-dark);
}

#wallet-connect:hover {
  background: var(--accent-light);
  color: white;
}

.dark-theme #wallet-connect:hover {
  background: var(--accent-dark);
}

.token-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 0.5rem;
}

.metric-card {
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dark-theme .metric-card {
  background: var(--background-dark);
  border-color: var(--border-color-dark);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.metric-label {
  color: var(--text-secondary-light);
  font-size: 0.9rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.dark-theme .metric-label {
  color: var(--text-secondary-dark);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary-light);
  line-height: 1.2;
}

.dark-theme .metric-value {
  color: var(--text-primary-dark);
}

.metric-subtitle {
  color: var(--text-secondary-light);
  font-size: 0.85rem;
  opacity: 0.8;
}

.metric-unit {
  font-size: 0.9rem;
  opacity: 0.7;
}

.dark-theme .metric-subtitle {
  color: var(--text-secondary-dark);
}

.metric-change {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
  margin-top: 0.25rem;
}

.metric-change.positive {
  background: rgba(0, 200, 83, 0.1);
  color: #00c853;
}

.metric-change.negative {
  background: rgba(255, 82, 82, 0.1);
  color: #ff5252;
}

.dark-theme .metric-change.positive {
  background: rgba(0, 200, 83, 0.2);
}

.dark-theme .metric-change.negative {
  background: rgba(255, 82, 82, 0.2);
}

.A0T {
  font-family: "Lucida Console", Monaco, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-variant-numeric: slashed-zero;
}

.section-button-token-purchase {
  margin-bottom: -3rem;
  margin-top: 2rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.contact-box {
  background-color: var(--card-bg-light);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow-light);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dark-theme .contact-box {
  background-color: var(--card-bg-dark);
  box-shadow: var(--card-shadow-dark);
}

.dark-theme .contact-box:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.author-box {
  display: flex;
  flex-direction: column;
}

.author-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.author-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-color);
  margin-bottom: 1.5rem;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  flex: 1;
  width: 100%;
}

.author-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary-light);
}

.author-bio {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--text-secondary-light);
  text-align: justify;
  hyphens: auto;
}

.author-links {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.links-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.author-links a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.author-links a:hover {
  color: var(--accent-color-hover);
}

.link-separator {
  color: var(--text-secondary-light);
}

.dark-theme .contact-box {
  background-color: var(--card-bg-dark);
  box-shadow: var(--card-shadow-dark);
}

.dark-theme .contact-box:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.dark-theme .author-info h3 {
  color: var(--text-primary-dark);
}

.dark-theme .author-bio {
  color: var(--text-secondary-dark);
}

.dark-theme .link-separator {
  color: var(--text-secondary-dark);
}

.author-info p {
  text-align: justify;
  hyphens: auto;
  margin-bottom: 1rem;
}

.author-info p:last-child {
  margin-bottom: 1.5rem;
}

/* Contributors Section */
.contributors-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary-light);
  text-align: center;
}

.contributors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.contributor-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--card-bg-light);
  border-radius: 8px;
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.contributor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.contributor-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.contributor-avatar img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.contributor-info {
  flex: 1;
}

.contributor-name {
  display: block;
  color: var(--text-primary-light);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contributor-card:hover .contributor-name {
  color: var(--accent-light);
}

.contribution-count {
  font-size: 0.9rem;
  color: var(--text-secondary-light);
}

.dark-theme .contributor-card {
  background-color: var(--card-bg-dark);
  box-shadow: none;
}

.dark-theme .contributor-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.dark-theme .contribution-count {
  color: var(--text-secondary-dark);
}

.dark-theme .contributor-name {
  color: var(--text-primary-dark);
}

.dark-theme .contributor-card:hover .contributor-name {
  color: var(--accent-dark);
}

.loading-message,
.error-message {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary-light);
}

.error-message {
  color: var(--error-color, #dc3545);
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .contributors-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .author-avatar {
    width: 150px;
    height: 150px;
  }
}

.icon{
  color:var(--accent-light);
  vertical-align: text-bottom;
  margin-bottom: 0.1em;
  font-size:1em !important;
}

.dark-theme .icon{
  color:var(--accent-dark);
}

.contributors-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary-light);
  text-align: center;
}

.dark-theme .contributors-box h3 {
  color: var(--text-primary-dark);
}

.amount-base {
  font-size:1em;
  /* font-weight: bolder; */
}

.amount-decimal {
  font-size:0.8em;
  /* font-weight: normal; */
}

/* Responsive Design */
@media (max-width: 768px) {
  .contributors-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.loading {
  width: calc(100% - 4rem);
  max-width: 1200px;
  min-height: 50px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  margin: 2rem auto;
  opacity: 0;
  animation: fadeIn 500ms ease-out 500ms forwards;
}

.light-theme .loading {
  background: var(--bg-secondary-light);
}

.dark-theme .loading {
  background: var(--bg-secondary-dark);
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.dark-theme .loading::before {
  background: linear-gradient(90deg, 
    var(--bg-primary-dark), 
    var(--bg-secondary-dark),
    var(--bg-primary-dark)
  );
  animation: shimmer 2s infinite;
  animation-delay: 250ms;
  background-size: 200% 100%;
}

.light-theme .loading::before {
  background: linear-gradient(90deg, 
    var(--bg-primary-light),
    color-mix(in srgb, var(--bg-secondary-light) 95%, black),
    var(--bg-primary-light)
  );
  animation: shimmer 2s infinite;
  animation-delay: 250ms;
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}